Basic example of LuaTeX’s process_input_buffer callback

Introduction As mentioned in a previous post, LuaTeX provides a facility called callbacks in which you write a Lua function (your callback) and register it with LuaTeX through the callback.register() API function. callback.register() takes two parameters: A predefined callback name: … Continue reading Basic example of LuaTeX’s process_input_buffer callback